﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnimationLearningSpeed
{
	/// <summary>
	/// Interaction logic for ControlReadingTextII.xaml
	/// </summary>
	public partial class ControlReadingTextII : UserControl
	{
		public ControlReadingTextII()
		{
			this.InitializeComponent();
            this.GControl.Visibility = Visibility.Hidden;
		}
       
        private void bSlow_Click(object sender, RoutedEventArgs e)
        {
            this.GControl.Visibility = Visibility.Visible;
            BeginStoryboard((Storyboard)this.FindResource("SpeedI"));
        }

        private void bMedium_Click(object sender, RoutedEventArgs e)
        {
            this.GControl.Visibility = Visibility.Visible;
            BeginStoryboard((Storyboard)this.FindResource("SpeedIII"));
        }

        private void bFast_Click(object sender, RoutedEventArgs e)
        {
            this.GControl.Visibility = Visibility.Visible;
            BeginStoryboard((Storyboard)this.FindResource("SpeedII"));
        }
	}
}